﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClientScriptTest.aspx.cs" Inherits="NDF.Web.Test.AspxTest.ClientScriptTest" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script runat="server">
    
        protected void Page_Load(object sender, EventArgs e)
        {
            //this.ClientScript.RegisterArrayDeclaration("arrayName", "'a', 'b', 'c'");

            //this.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "var array = [];");
            
            //this.ClientScript.RegisterClientScriptInclude("", "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.js");

            //this.ClientScript.RegisterClientScriptResource(this.GetType(), "resourceName");

            //this.ClientScript.RegisterExpandoAttribute("controlId", "attributeName", "attributeValue");

            //this.ClientScript.RegisterForEventValidation("uniqueId", "argument");

            //this.ClientScript.RegisterHiddenField("hiddenFieldName", "hiddenFieldInitialValue");

            //this.ClientScript.RegisterOnSubmitStatement(this.GetType(), "onSubmitKey", "onSubmitScript");

            //this.ClientScript.RegisterStartupScript(this.GetType(), "startupKey", "startupScript", true);

            //this.ClientScript.Alert("abc", "input1", true);

            //this.GetScriptHost().Alert("abc", false);

            var script = this.GetScriptHost();
            script.Alert("abc");
        }
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <input id="input1" type="text" />
        </div>
    </form>
</body>
</html>
